﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace T.FAS.Runtime.Metadata.Entity.Page
{
    /// <summary>
    /// 模板分组
    /// </summary>
    [DataContract]
    [Serializable]
    public class PageTemplateGroup
    {
        /// <summary>
        /// 主键
        /// </summary>
        [DataMember]
        public string ID { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string Creator { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 最后修改人
        /// </summary>
        public string LastModifier { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModifyTime { get; set; }
        /// <summary>
        /// 分组编码
        /// </summary>
        [DataMember]
        public string Code { get; set; }
        /// <summary>
        /// 分组名称
        /// </summary>
        [DataMember]
        public string Name { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        [DataMember]
        public string ParentID { get; set; }
        /// <summary>
        /// 模板类型
        /// </summary>
        [DataMember]
        public TemplateType TemplateType { get; set; }
        /// <summary>
        /// 界面类型 0 Page 8 小部件
        /// </summary>
        [DataMember]
        public int PageType { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [DataMember(Name = "icon")]
        public string Icon { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int SortOrder { get; set; }
        /// <summary>
        /// 模板文件夹
        /// </summary>
        [DataMember]
        public List<PageTemplate> Templates { get; set; } = new List<PageTemplate>();
    }
}
